import service from '@/utils/request'

// @Tags CusSpread
// @Summary 创建cusSpread表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.CusSpread true "创建cusSpread表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /cusSpread/createCusSpread [post]
export const createCusSpread = (data) => {
  return service({
    url: '/cusSpread/createCusSpread',
    method: 'post',
    data
  })
}

// @Tags CusSpread
// @Summary 删除cusSpread表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.CusSpread true "删除cusSpread表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /cusSpread/deleteCusSpread [delete]
export const deleteCusSpread = (params) => {
  return service({
    url: '/cusSpread/deleteCusSpread',
    method: 'delete',
    params
  })
}

// @Tags CusSpread
// @Summary 批量删除cusSpread表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除cusSpread表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /cusSpread/deleteCusSpread [delete]
export const deleteCusSpreadByIds = (params) => {
  return service({
    url: '/cusSpread/deleteCusSpreadByIds',
    method: 'delete',
    params
  })
}

// @Tags CusSpread
// @Summary 更新cusSpread表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.CusSpread true "更新cusSpread表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /cusSpread/updateCusSpread [put]
export const updateCusSpread = (data) => {
  return service({
    url: '/cusSpread/updateCusSpread',
    method: 'put',
    data
  })
}

// @Tags CusSpread
// @Summary 用id查询cusSpread表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.CusSpread true "用id查询cusSpread表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /cusSpread/findCusSpread [get]
export const findCusSpread = (params) => {
  return service({
    url: '/cusSpread/findCusSpread',
    method: 'get',
    params
  })
}

// @Tags CusSpread
// @Summary 分页获取cusSpread表列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取cusSpread表列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /cusSpread/getCusSpreadList [get]
export const getCusSpreadList = (params) => {
  return service({
    url: '/cusSpread/getCusSpreadList',
    method: 'get',
    params
  })
}
